home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0123-Re Prog won't run n-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-20  |  1.4 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    5453702                         18-Oct-89        08:40
  2.  
  3. From:   PASCOE1                         Pascoe, Geoff
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Re: Prog won't run non-debug
  8.  
  9. Eric,
  10.  
  11. Just a thought about your problem-
  12.  
  13. If you've looked at the suggestions of the others and still can't find the
  14. problem, there is a class of errors that may be the cause of your problem.
  15. (The other problems are much more likely, so check them first.)
  16.  
  17. When one compiles with "debug on" the code that gets executed has lots of other
  18. things happening that does not happen in the non-debug version.  That is, LOTS
  19. of other methods and procedures get called and return, leaving the stack in a
  20. very different state than would exist in a non-debug version of the program.
  21. If you forget to initialize a local variable or forget to return a value from a
  22. function (be sure to check that return value assignment actually gets executed,
  23. if there are different paths the execution might take) the debug version, by
  24. coincidence may be in such a state as to allow the program to continue, but
  25. when you switch to non-debug the values will likely not be the same.  A more
  26. likely symptom of these types of errors is a trip into MacsBug or logic errors
  27. and strange behaviour, but I can imagine that some course of events might also
  28. lead to a program error alert.
  29.  
  30. Good Luck,
  31. Geoff
  32.  
  33.